

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>LayerDemo演示</title>

</head>
<body>
<h2>LayerDemo演示</h2>
Alter
<button onclick="LayerWn.showAlert('有问题了啊');">alert</button>
<button onclick="LayerWn.showSucAlert();">操作成功提示框</button>
<button onclick="LayerWn.showSucAlert('我成功了',showCall);">操作成功提示框+自定义提示内容+回调方法</button>

<button onclick="LayerWn.showFailAlert();">操作失败提示框</button>
<button onclick="LayerWn.showFailAlert('我失败了',0);">操作失败提示框+自定义提示内容+不自动关闭</button>
<br/>
OpenDialog
<button onclick="LayerWn.openDialog('我是Open窗口','demo02Edit.jsp');">对话框</button>
<button onclick="LayerWn.openDialog('我是Open窗口','demo02Edit.jsp',400);">对话框+自定义宽</button>
<button onclick="LayerWn.openDialog('我是Open窗口','demo02Edit.jsp',500,500);">对话框+自定义宽高</button>
<br/>
Message
<button onclick="LayerWn.showMsg('我只是简单的提示一下');">对话框</button>
<button onclick="LayerWn.showSucMsg('我是成功的提示框')">成功的提示框</button>
<br/>
Confirm
<button onclick="LayerWn.showConfirm('你确定要这样操作吗',function(index){LayerWn.closeLayer(index)});">Confirm对话框</button>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="platcommon/layer-wn.js"></script>
<script type="text/javascript">
    function showCall(index){
        alert("我是回调奥"+index);
        LayerWn.closeLayer(index);
    }
</script>
</body>
</html>